package au.edu.swin.swinvehicle.manager;

import java.io.Serializable;

/**
 * Manager tranfer object. This is the brief information of manager.
 * It might be used for drop down box for selecting manager.
 * @version 1.0
 * @author Dany Gunawan
 * @lastmodify 2009-05-12
 */
// We will make the class Serializable so we can easily send it to remote clients.
public class ManagerTO implements Serializable {

    private Long id;
    private String name;

    /** Creates a new instance of ManagerTO */
    public ManagerTO(Long id, String name) throws ManagerManagerException {
        try {
            this.id = id;
            this.setName(name);
        } catch (Exception e) {
            throw new ManagerManagerException("Cannot instantiate new ManagerTO object", e);
        }
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    private void setName(String name) {
        this.name = name;
    }
}
